Excel import

Hello,

 

When i try import the contents of excel to DOORs i am facing problem. All text format is coming properly Numbers in excel cell it is not importing. i will put the code snippet where i am fetching the cell value from excel.

string getCellValue(OleAutoObj objExcelSheet, int row, int col)
{
 string sValue = null
 OleAutoObj objCell = null
 OleAutoArgs autoArgs = create
 
 put(autoArgs,row)                                 // Put the row number of excel sheet to args
 put(autoArgs,col)          // Put the col number of excel sheet to args
 
 if(objExcelSheet == null)                         // Check for excel sheet is null " no contents in the sheet "
 {
  warningBox("Excel sheet not contains any data it is blank ")
 }
 oleGet(objExcelSheet,"Cells",autoArgs,objCell)        // If data is present then
 
 if (!null objCell)
 {
  // Get the value
  oleGet(objCell,"Value",sValue)                   // Fetch the data from cell
 }
 
 delete autoArgs
 return sValue                                        // Return the fetched data of the cell with specific row and column
}

 


Avinash Singh - Thu Dec 19 03:59:21 EST 2013